package top.lingkang.finaloauth.server.base.impl;

import top.lingkang.finaloauth.server.base.OauthServerRepository;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lingkang
 * Created by 2022/3/18
 */
public class MemoryOauthServerRepository implements OauthServerRepository {
    private Map<String, Object> map = new HashMap<>();

    @Override
    public Object get(String key) {
        return map.get(key);
    }

    @Override
    public void set(String key, Object obj) {
        map.put(key, key);
    }

    @Override
    public Object remove(String key) {
        return map.remove(key);
    }
}
